<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template name="DateShort">
<xsl:param name="DateTime" />

<xsl:variable name="year" select="substring($DateTime,1,4)" />
<xsl:variable name="month-temp" select="substring-after($DateTime,'-')" />
<xsl:variable name="month" select="substring-before($month-temp,'-')" />
<xsl:variable name="day-temp" select="substring-after($month-temp,'-')" />
<xsl:variable name="day" select="substring($day-temp,1,2)" />
<xsl:variable name="time" select="substring-after($DateTime,'T')" />
<xsl:variable name="hh" select="substring($time,1,2)" />
<xsl:variable name="mm" select="substring($time,4,2)" />
<xsl:variable name="ss" select="substring($time,7,2)" />

<!-- EUROPEAN FORMAT -->
<xsl:value-of select="$day"/>
<xsl:value-of select="'/'"/> <!--18.-->
<xsl:value-of select="$month"/>
<xsl:value-of select="'/'"/> <!--18.03.-->
<xsl:value-of select="$year"/><!--
<xsl:value-of select="' '"/>
<xsl:value-of select="$hh"/>
<xsl:value-of select="':'"/> 
<xsl:value-of select="$mm"/>
<xsl:value-of select="':'"/> 
<xsl:value-of select="$ss"/>
 END: EUROPEAN FORMAT -->

</xsl:template>

<xsl:template name="DateLong">
<xsl:param name="DateTime" />

<xsl:variable name="year" select="substring($DateTime,1,4)" />
<xsl:variable name="month-temp" select="substring-after($DateTime,'-')" />
<xsl:variable name="month" select="substring-before($month-temp,'-')" />
<xsl:variable name="day-temp" select="substring-after($month-temp,'-')" />
<xsl:variable name="day" select="substring($day-temp,1,2)" />
<xsl:variable name="time" select="substring-after($DateTime,'T')" />
<xsl:variable name="hh" select="substring($time,1,2)" />
<xsl:variable name="mm" select="substring($time,4,2)" />
<xsl:variable name="ss" select="substring($time,7,2)" />

<!-- EUROPEAN FORMAT -->
<xsl:value-of select="$day"/>
<xsl:value-of select="'/'"/> <!--18.-->
<xsl:value-of select="$month"/>
<xsl:value-of select="'/'"/> <!--18.03.-->
<xsl:value-of select="$year"/><!--
<xsl:value-of select="' '"/>
<xsl:value-of select="$hh"/>
<xsl:value-of select="':'"/> 
<xsl:value-of select="$mm"/>
<xsl:value-of select="':'"/> 
<xsl:value-of select="$ss"/>
 END: EUROPEAN FORMAT -->

</xsl:template>
</xsl:stylesheet>